<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./assets/global.css">
    <style>
        h1 {
            margin-block-start: 0em;
            padding-top: 0.67em;
        }

        .toe {
            /* 默认宽度 */
            width: 200px;
            display: -webkit-box;
            overflow: hidden;
            word-wrap: break-word;
            word-break: break-all;
            white-space: normal !important;
            text-overflow: ellipsis;
            /* 控制行数 */
            line-clamp: var(--line-clamp, 2);
            -webkit-line-clamp: var(--line-clamp, 2);
            -webkit-box-orient: vertical;
        }

        .s-line {
            --line-clamp: 1;
        }

        .m-line {
            --line-clamp: 3;
        }
    </style>
</head>

<body>
    <h1>单行👇</h1>
    <div class="s-line toe">
        11111111111111111111111111111111111111111111111111111111哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇。。。。。。。.................💛💛💛💛💛💛💛💛💛💛💛💛💛💛💛💛💛
    </div>
    <h1>多行👇</h1>
    <div class="m-line toe">
        11111111111111111111111111111111111111111111111111111111哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇。。。。。。。.................💛💛💛💛💛💛💛💛💛💛💛💛💛💛💛💛💛
    </div>
</body>

</html>